$(function(){

    // logout
    $("#logoutBtn").click(function(){
        layer.confirm( "确认注销" , {
            icon: 3,
            title: "系统提示" ,
            btn: [ "确定", "关闭" ]
        }, function(index){
            layer.close(index);
            window.location.href = base_url + "/logout";
        });

    });


});
